import axios from './axios'
import qs from 'qs'
import {appUrl} from '@/config/config'

export const apply = (data) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/agent-center/invitation/apply',
            method: 'post',
            data
        }).then(res => {
            resolve(res.data)
        })
    });
}

export const getAgentList = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/agent-center/invitation/to/agent',
            method: 'get',
            params
        }).then(res => {
            resolve(res.data)
        })
    });
}